package com.hjs.bean;

import lombok.*;

import java.time.LocalDate;

/**
 * 道路设施路面损害情况记录表共有属性
 *
 * @author violetfreesia
 * @date 2020/06/16
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
public class PavementDamageCom {
    //共有属性ID
    private Integer pavementDamageComID;
    //检查日期
    private LocalDate inspectionDate;
    //检查人员ID
    private String inspectorID;
    //起止位置
    private String SAEPlace;
    //检查总长
    private Double totalLength;
    //检查总宽
    private Double totalWidth;
    //检查面积
    private Double inspectionArea;
    //定期检测ID
    private Integer regularInspectionID;

    public PavementDamageCom(Integer pavementDamageComID, LocalDate inspectionDate, String inspectorID, String SAEPlace, Double totalLength, Double totalWidth, Integer regularInspectionID) {
        this.pavementDamageComID = pavementDamageComID;
        this.inspectionDate = inspectionDate;
        this.inspectorID = inspectorID;
        this.SAEPlace = SAEPlace;
        this.totalLength = totalLength;
        this.totalWidth = totalWidth;
        this.inspectionArea = totalLength * totalWidth;
        this.regularInspectionID = regularInspectionID;
    }
}
